package com.caigou.service;

import com.caigou.bean.cms.entity.Article;
import com.caigou.bean.cms.entity.EsArticle;
import com.caigou.bean.cms.param.EsArticleParam;
import com.caigou.pojo.ArticleList;
import com.caigou.util.Result;
import com.github.pagehelper.PageInfo;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IEsArticleService {

    EsArticle findEsArticleByArticleId(String articleId);

    Result<PageInfo<ArticleList>> findEsArticleListByParam(EsArticleParam pram);

    EsArticle saveEsArticle(EsArticle article);

    List<Article> findUnIndexedArticleList(Integer pageSize);

    Integer updateArticleIndexStatus(String articleId);


    List<Article> findArticleByArticleIds(List<String> articleIds);

    List<String> getIkAnalyzeSearchTerms(String searchContent, int analyzerType);

    void deleteEsArticle(EsArticle bean);

}

